<h2> <?= $this->title;?> </h2>
<? if(count($this->paginator)): ?>
    <?= $this->paginationControl($this->paginator, 'Sliding', 
                'partials/my_paginator.phtml'); ?>
    <table border="1" width="100%">
        <tr>
            <th> S </th>
            <th> ID </th>
            <th> Задача </th>
            <th> Тема </th>
            <th> Разбор </th>
            <th> Сложность </th>
            <th> Решаемость </th>
            <th> Принято </th>
        </tr>
        <? foreach ($this->paginator as $problem) :?>
        <tr>
            <td>

            </td>
            <td>
                <?= $problem['problem_id']; ?>
            </td>
            <td>
                <a href="<?= $this->url(array(
                    'action'        => 'view',
                    'id'            => $problem['problem_id']
                ));?>"> <?= $problem['title']; ?> </a>
            </td>
            <td> <?= $problem['theme']; ?> </td>
            <td> <?= $problem['analysis']; ?> </td>
            <td> <?= $problem['complexity']; ?>% </td>
            <td> 0% </td>
            <td> 0 </td>
        </tr>
        <? endforeach;?>
    </table>
    <?= $this->paginationControl($this->paginator, 'Sliding', 
                'partials/my_paginator.phtml'); ?>
<? endif; ?>

